This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sakridge
force-pushed
the
spawn-each-stream
branch
2 times, most recently
from
June 24, 2022 14:21
31d7043
to
b9e2a4a
Compare
sakridge
force-pushed
the
spawn-each-stream
branch
from
June 24, 2022 14:29
b9e2a4a
to
0c468a5
Compare
bench results:
master:
|
Do you think usage of
|
lijunwangs
reviewed
Jun 25, 2022
let stats = stats.clone(); | ||
let packet_sender = packet_sender.clone(); | ||
let last_update = last_update.clone(); | ||
tokio::spawn(async move { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The concern probably is we may spawn too many async tasks into the runtime in the server side compared with before. But I think that might be addressed by tweaking the maximum streams allowed for each connection if we find issues.
lijunwangs
approved these changes
Jun 25, 2022
pgarg66
approved these changes
Jun 27, 2022
mergify bot
pushed a commit
that referenced
this pull request
Jun 27, 2022
(cherry picked from commit 2cc48a6)
mergify bot
added a commit
that referenced
this pull request
Jun 27, 2022
(cherry picked from commit 2cc48a6) Co-authored-by: sakridge <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
awaiting streams in order can produce head of line blocking when streams come in out of order
Summary of Changes
spawn for each stream
Fixes #26031